import request from '@/utils/request'

// 获取路由
export const getRouters = ({language, country}) => {
  return request({
    url: '/system/saas/menu/getRouters',
    params:{language,country},
    method: 'get'
  })
}

// 设置主题
export const setUserTheme = (data) => {
  return request({
    url: '/system/saas/user/addUserTheme',
    method: 'post',
    data
  })
}

// 设置语言
export const setUserLang = ({language, country}) => {
  return request({
    url: '/system/saas/user/addLanguage',
    method: 'post',
    data:{language,country}
  })
}

// 设置应用
export const setUserApp = (currentAppId) => {
  return request({
    url: '/system/saas/user/addUserAppId',
    method: 'post',
    data:{currentAppId}
  })
}

